#pragma once

#include<osg/Geode>
#include<osg/Camera>
#include<osgText/Text>
#include<amk3/amk3.h>

class AMK_API ScreenDisplay
{
public:
    ScreenDisplay();
    ~ScreenDisplay();

    static ScreenDisplay* instance();

    inline bool getEnabled() { return _enabled; }
    void setEnabled(bool);

    void addText(osgText::Text*);

    void setFPSEnabled(bool b);

protected:
    void _createCamera();

protected:
    bool _enabled{ false };
    osg::ref_ptr<osg::Camera> _camera;
    osg::ref_ptr<osg::Geode> _geode;
};

